<?
    session_start();
    include('class.mysql.php');
    $mydb = new mysql();
    $connection = $mydb->Connect();
    //ob_start();
    //$nuptk =  $_COOKIE["login"];
    //Mengambil data reg_no login
    $nuptk = $_SESSION["SES_USERNAME"];
    $no_reg2=$_GET["reg"];
    /*Mengecek aktif user, jika admin, maka, menu pengaturan admin diaktifkan*/
    $ssign="user";
    if ($nuptk=="admin")
        $additional_menu = '<li class="last"><a href="lihat_pesan.php">Pengaturan Pesan Admin</a></li>';
    else
	  {
    		$sql="SELECT pesan10,pesan9 FROM admin where username='$nuptk'";
		    //echo "$sql";	
		    $query = $mydb->Query($sql);
		    $num = $mydb->FetchNum($query);
		    //$kabupaten[]="Pilih kota2";
		    if($array= mysql_fetch_row($query))
        {
        	  if($array[0]==substr($no_reg2,0,2))
        	  {
						    $additional_menu = '<li class="last"><a href="lihat_pesan.php">Pengaturan Pesan Admin</a></li>';       
						    $ssign="adm"; 
						    $nama_kkx = $array[1];
					  }
			  }    
		}
    if($nuptk!="")
    {
        $sql="SELECT no_reg FROM login where nuptk='$nuptk'";
        //echo "$sql";	
        $query = $mydb->Query($sql);
        $num = $mydb->FetchNum($query);
        //$kabupaten[]="Pilih kota2";
        if($array= mysql_fetch_row($query))
        {
	    $reg_no=$array[0];
        }
        else
            $reg_no="X";
        //end
    }
    else
        $reg_no="X";
    //Mengambil nama KK
    if($nuptk!="")
    {
        $sql="SELECT nama_kk FROM identitas where no_reg='$reg_no'";
        //echo "$sql";	
        $query = $mydb->Query($sql);
        $num = $mydb->FetchNum($query);
        //$kabupaten[]="Pilih kota2";
        if($array= mysql_fetch_row($query))
        {
	    $nama_kkx=$array[0];
        }//end
        if ($nuptk=="admin")
            $nama_kkx="Administrator";
        $img_log="images/sign_out.png";
    }
    else
    {
        $nama_kkx="Belum login";
        $img_log="images/sign_in.png";
    }
    //Menghitung jumlah KK terdaftar
    $sql="SELECT COUNT(*) FROM login ";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$jumlah_total_kk=$array[0];
    }//end

    $sql="select no_reg from login where nuptk='$nuptk'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$no_reg=$array[0];
    }
    $no_reg2=$_GET["reg"];
    /**********/
    /*Propinsi*/
    /**********/
    $kode_prop=substr($no_reg2,0,2);
    $sql="select propinsi from propinsi where kode='$kode_prop'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$nama_prop=$array[0];
    }
    /****************/
    /*Kabupaten/Kota*/
    /****************/
    $kode_kab=substr($no_reg2,3,2);
    $sql="select kabupaten from kabupaten where kode='$kode_kab' and kode_prop='$kode_prop'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$nama_kab=$array[0];
    }
    /*********/
    /*Jenis KK*/
    /*********/
    $no_kk=substr($no_reg2,6,1);
    if($no_kk=='1')
        $jenis_kk="KKG";  
    else if ($no_kk=='2')
        $jenis_kk="MGMP";
    else if ($no_kk=='3')
        $jenis_kk="KKKS";
    else if ($no_kk=='4')
        $jenis_kk="MKKS";
    else if ($no_kk=='5')
        $jenis_kk="KKPS";
    else if ($no_kk=='6')
        $jenis_kk="MKPS";
    /*********************/
    /*Rumpun Bidang Studi*/
    /*********************/
    $kode_rumpun=substr($no_reg2,8,3);
    $sql="select bidang from bidang where kode='$kode_rumpun'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$nama_bidang=$array[0];
    }
        
    //baca indentitas
    $sql="select no_reg,nama_kk,alamat,desa,kecamatan,email,hp,daerah,nama_bank,rek_bank,pemilik_rek,sk_no,tanggal_sk from identitas where no_reg='$no_reg2'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$no_reg=$array[0];
	$nama_kk=$array[1];
	$alamat=$array[2];
	$desa=$array[3];
	$kecamatan=$array[4];
	$email=$array[5];
	$hp=$array[6];
	$daerah=$array[7];
	$nama_bank=$array[8];
	$rek_bank=$array[9];
	$pemilik_rek=$array[10];
	$sk_no=$array[11];
	$tanggal_sk=$array[12];
    }
    if($nama_kk=="" and $nuptk=="admin")
        header("Location: ptampil_data.php");
    $jabatan1=0;$jabatan2=0;$jabatan3=0;$jabatan4=0;$jabatan5=0;$jabatan6=0;$jabatan7=0;$jabatan8=0;$jabatan9=0;$jabatan10=0;
    $jabatan11=0;$jabatan12=0;$jabatan13=0;$jabatan14=0;$jabatan15=0;$jabatan16=0;$jabatan17=0;$jabatan18=0;$jabatan19=0;$jabatan20=0;
    $jabatan21=0;$jabatan22=0;$jabatan23=0;$jabatan24=0;$jabatan25=0;
    if($daerah=='1')
       $tipe_daerah="Perkotaan";
    else if($daerah=='2')
       $tipe_daerah="Pedesaan";
    else if($daerah=='3')
       $tipe_daerah="Terpencil";
    else if($daerah=='4')
       $tipe_daerah="Perbatasan (dengan negara lain)";
       
    //baca anggota
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='001'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama1=$array[0];
	$snuptk1=$array[1];
	$jabatan1=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='002'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama2=$array[0];
	$snuptk2=$array[1];
	$jabatan2=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='003'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama3=$array[0];
	$snuptk3=$array[1];
 	$jabatan3=$array[2];
   }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='004'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama4=$array[0];
	$snuptk4=$array[1];
	$jabatan4=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='005'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama5=$array[0];
	$snuptk5=$array[1];
	$jabatan5=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='006'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama6=$array[0];
	$snuptk6=$array[1];
	$jabatan6=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='007'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama7=$array[0];
	$snuptk7=$array[1];
	$jabatan7=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='008'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama8=$array[0];
	$snuptk8=$array[1];
	$jabatan8=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='009'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama9=$array[0];
	$snuptk9=$array[1];
	$jabatan9=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='010'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama10=$array[0];
	$snuptk10=$array[1];
	$jabatan10=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='011'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama11=$array[0];
	$snuptk11=$array[1];
	$jabatan11=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='012'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama12=$array[0];
	$snuptk12=$array[1];
	$jabatan12=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='013'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama13=$array[0];
	$snuptk13=$array[1];
	$jabatan13=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='014'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama14=$array[0];
	$snuptk14=$array[1];
	$jabatan14=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='015'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama15=$array[0];
	$snuptk15=$array[1];
	$jabatan15=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='016'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama16=$array[0];
	$snuptk16=$array[1];
	$jabatan16=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='017'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama17=$array[0];
	$snuptk17=$array[1];
	$jabatan17=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='018'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama18=$array[0];
	$snuptk18=$array[1];
	$jabatan18=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='019'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama19=$array[0];
	$snuptk19=$array[1];
	$jabatan19=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='020'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama20=$array[0];
	$snuptk20=$array[1];
	$jabatan20=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='021'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama21=$array[0];
	$snuptk21=$array[1];
	$jabatan21=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='022'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama22=$array[0];
	$snuptk22=$array[1];
	$jabatan22=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='023'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama23=$array[0];
	$snuptk23=$array[1];
	$jabatan23=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='024'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama24=$array[0];
	$snuptk24=$array[1];
	$jabatan24=$array[2];
    }
    $sql="select nama,nuptk,jabatan from anggota where no_reg='$no_reg2' and no_urut='025'";
    //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$snama25=$array[0];
	$snuptk25=$array[1];
	$jabatan25=$array[2];
    }
    //menghitung jumlah anggota
    $sql="SELECT COUNT(*) FROM anggota WHERE no_reg='$no_reg2'";
   //echo "$sql";	
    $query = $mydb->Query($sql);
    $num = $mydb->FetchNum($query);
    //$kabupaten[]="Pilih kota2";
    if($array= mysql_fetch_row($query))
    {
	$jumlah_anggota=$array[0];
    }
    //menentukan pilihan propinsi
    $_SESSION["PROP_VAL"] = substr($no_reg2,0,2);
    $_SESSION["KOTA_VAL"] = substr($no_reg2,3,2);
    $_SESSION["BIDANG_VAL"] = substr($no_reg2,8,3);
?>
<script type="text/javascript" >
function checkprivilege()
{
    var userread;
    noregread = "<?php echo $no_reg2 ?>"; //no registrasi yang akan dilihat
    noreglogin = "<?php echo $reg_no ?>"; //no registrasi login
    userlogin = "<?php echo $nuptk ?>";
    //alert(noreglogin);
    //alert("<?php echo $_SESSION["SES_USERNAME"]?>");
    if (noregread != noreglogin)
    {
    		var ssign = "<?php echo $ssign ?>";
        if(!(userlogin=="admin" || ssign == "adm"))
        {
            alert("Maaf, anda tidak dapat mengakses halaman ini");
            window.location="showlistdata.php";
        }
    } 
    
}
function showlistkota(str)
{
    var data;
    //window.alert(str);
    if (str.length==0)
      {
      document.getElementById("listkota2").innerHTML="";
      return;
      }
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
      }
    else
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    xmlhttp.onreadystatechange=function()
      {
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
        {
        document.getElementById("listkota2").innerHTML=xmlhttp.responseText;
        }
      }
    xmlhttp.open("GET","listkotae.php?q="+str,true);
    xmlhttp.send();

    update_retprop(str);
}
function showlistpropinsi(str)
{
    //window.alert(str);
    if (str.length==0)
      {
      document.getElementById("listpropinsi").innerHTML="";
      return;
      }
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp2=new XMLHttpRequest();
      }
    else
      {// code for IE6, IE5
      xmlhttp2=new ActiveXObject("Microsoft.XMLHTTP");
      }
    xmlhttp2.onreadystatechange=function()
      {
      if (xmlhttp2.readyState==4 && xmlhttp2.status==200)
        {
        document.getElementById("listpropinsi").innerHTML=xmlhttp2.responseText;
        }
      }
    xmlhttp2.open("GET","listprope.php?q="+str,true);
    xmlhttp2.send();
    //XX-XX-X-XXX
    //ChangeNoReg_updatelist("XX")
}
function showlistbidang(str)
{
    //window.alert(str);
    if (str.length==0)
      {
      document.getElementById("listbidang").innerHTML="";
      return;
      }
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp3=new XMLHttpRequest();
      }
    else
      {// code for IE6, IE5
      xmlhttp3=new ActiveXObject("Microsoft.XMLHTTP");
      }
    xmlhttp3.onreadystatechange=function()
      {
      if (xmlhttp3.readyState==4 && xmlhttp3.status==200)
        {
        document.getElementById("listbidang").innerHTML=xmlhttp3.responseText;
        }
      }
    xmlhttp3.open("GET","listbidange.php?q="+str,true);
    xmlhttp3.send();
    //ChangeNoReg_updatelist("XX")

}
function showtabelanggota(str)
{
    //window.alert(str);
    if (str.length==0)
      {
      document.getElementById("tampilanggota").innerHTML="";
      return;
      }
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp3=new XMLHttpRequest();
      }
    else
      {// code for IE6, IE5
      xmlhttp3=new ActiveXObject("Microsoft.XMLHTTP");
      }
    xmlhttp3.onreadystatechange=function()
      {
      if (xmlhttp3.readyState==4 && xmlhttp3.status==200)
        {
        document.getElementById("tampilanggota").innerHTML=xmlhttp3.responseText;
        }
      }
    if(str!='X')
    {
        xmlhttp3.open("GET","tampil_data.php?anggota="+str,true);
        xmlhttp3.send();
    }
    else
        window.location='ptampil_data.php';
    //ChangeNoReg_updatelist("XX")

}
function showtableprogram(str)
{
    //window.alert(str);
    if (str.length==0)
      {
      document.getElementById("tampilprogram").innerHTML="";
      return;
      }
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp4=new XMLHttpRequest();
      }
    else
      {// code for IE6, IE5
      xmlhttp4=new ActiveXObject("Microsoft.XMLHTTP");
      }
    xmlhttp4.onreadystatechange=function()
      {
      if (xmlhttp4.readyState==4 && xmlhttp4.status==200)
        {
        document.getElementById("tampilprogram").innerHTML=xmlhttp4.responseText;
        }
      }
    if(str!='X')
    {
        xmlhttp4.open("GET","tampil_program.php?anggota="+str,true);
        xmlhttp4.send();
    }
    else
        window.location='ptampil_data.php';
    //ChangeNoReg_updatelist("XX")

}
function setCookie(c_name,value,exdays)
{
	var exdate=new Date();
	exdate.setDate(exdate.getDate() + exdays);
	var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
	document.cookie=c_name + "=" + c_value;
}
function getCookie(c_name)
{
	var i,x,y,ARRcookies=document.cookie.split(";");
	for (i=0;i<ARRcookies.length;i++)
	  {
	  x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
	  y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
	  x=x.replace(/^\s+|\s+$/g,"");
	  if (x==c_name)
	    {
	    return unescape(y);
	    }
	  }
}


function saveDB(str)
{
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp5=new XMLHttpRequest();
      }
    else
      {// code for IE6, IE5
      xmlhttp5=new ActiveXObject("Microsoft.XMLHTTP");
      }
    xmlhttp5.onreadystatechange=function()
      {
      if (xmlhttp5.readyState==4 && xmlhttp5.status==200)
        {
        document.getElementById("testing").innerHTML=xmlhttp5.responseText;
        }
      }
    var no_reg=document.Inputdata.no_registrasi.value;
    var nama_kelompok=document.Inputdata.nama_kelompok.value;
    //var spassword_kk=document.Inputdata.password_kk.value;
    //var spassword_kk2=document.Inputdata.password_kk2.value;
    spassword_kk="aa";spassword_kk2="aa";
    var salamat_kk=document.Inputdata.alamat_kk.value;
    var sdesa_kk=document.Inputdata.desa_kk.value;
    var skecamatan_kk=document.Inputdata.kecamatan_kk.value;
    var semail_kk=document.Inputdata.email_kk.value;
    var shp_kk=document.Inputdata.hp_kk.value;
    var snama1=document.Inputdata.nama1.value; var sanggota1=document.Inputdata.anggota1.value; snuptk1=document.Inputdata.nuptk1.value;
    var snama2=document.Inputdata.nama2.value; var sanggota2=document.Inputdata.anggota2.value; snuptk2=document.Inputdata.nuptk2.value;
    var snama3=document.Inputdata.nama3.value; var sanggota3=document.Inputdata.anggota3.value; snuptk3=document.Inputdata.nuptk3.value;
    var snama4=document.Inputdata.nama4.value; var sanggota4=document.Inputdata.anggota4.value; snuptk4=document.Inputdata.nuptk4.value;
    var snama5=document.Inputdata.nama5.value; var sanggota5=document.Inputdata.anggota5.value; snuptk5=document.Inputdata.nuptk5.value;
    var snama6=document.Inputdata.nama6.value; var sanggota6=document.Inputdata.anggota6.value; snuptk6=document.Inputdata.nuptk6.value;
    var snama7=document.Inputdata.nama7.value; var sanggota7=document.Inputdata.anggota7.value; snuptk7=document.Inputdata.nuptk7.value;
    var snama8=document.Inputdata.nama8.value; var sanggota8=document.Inputdata.anggota8.value; snuptk8=document.Inputdata.nuptk8.value;
    var snama9=document.Inputdata.nama9.value; var sanggota9=document.Inputdata.anggota9.value; snuptk9=document.Inputdata.nuptk9.value;
    var snama10=document.Inputdata.nama10.value; var sanggota10=document.Inputdata.anggota10.value; snuptk10=document.Inputdata.nuptk10.value;
    var snama11=document.Inputdata.nama11.value; var sanggota11=document.Inputdata.anggota11.value; snuptk11=document.Inputdata.nuptk11.value;
    var snama12=document.Inputdata.nama12.value; var sanggota12=document.Inputdata.anggota12.value; snuptk12=document.Inputdata.nuptk12.value;
    var snama13=document.Inputdata.nama13.value; var sanggota13=document.Inputdata.anggota13.value; snuptk13=document.Inputdata.nuptk13.value;
    var snama14=document.Inputdata.nama14.value; var sanggota14=document.Inputdata.anggota14.value; snuptk14=document.Inputdata.nuptk14.value;
    var snama15=document.Inputdata.nama15.value; var sanggota15=document.Inputdata.anggota15.value; snuptk15=document.Inputdata.nuptk15.value;
    var snama16=document.Inputdata.nama16.value; var sanggota16=document.Inputdata.anggota16.value; snuptk16=document.Inputdata.nuptk16.value;
    var snama17=document.Inputdata.nama17.value; var sanggota17=document.Inputdata.anggota17.value; snuptk17=document.Inputdata.nuptk17.value;
    var snama18=document.Inputdata.nama18.value; var sanggota18=document.Inputdata.anggota18.value; snuptk18=document.Inputdata.nuptk18.value;
    var snama19=document.Inputdata.nama19.value; var sanggota19=document.Inputdata.anggota19.value; snuptk19=document.Inputdata.nuptk19.value;
    var snama20=document.Inputdata.nama20.value; var sanggota20=document.Inputdata.anggota20.value; snuptk20=document.Inputdata.nuptk20.value;
    var snama21=document.Inputdata.nama21.value; var sanggota21=document.Inputdata.anggota21.value; snuptk21=document.Inputdata.nuptk21.value;
    var snama22=document.Inputdata.nama22.value; var sanggota22=document.Inputdata.anggota22.value; snuptk22=document.Inputdata.nuptk22.value;
    var snama23=document.Inputdata.nama23.value; var sanggota23=document.Inputdata.anggota23.value; snuptk23=document.Inputdata.nuptk23.value;
    var snama24=document.Inputdata.nama24.value; var sanggota24=document.Inputdata.anggota24.value; snuptk24=document.Inputdata.nuptk24.value;
    var snama25=document.Inputdata.nama25.value; var sanggota25=document.Inputdata.anggota25.value; snuptk25=document.Inputdata.nuptk25.value;
    var jml_anggota=document.Inputdata.jumlah_anggota.value;
    var no_registrasi=no_reg.substring(12,15);
    
    var passing="savedbe.php?status="+str+"&no_reg="+no_reg+"&nama_kelompok="+nama_kelompok+"&password_kk="+spassword_kk+"&spassword_kk2="+spassword_kk2;
    passing=passing+"&salamat_kk="+salamat_kk+"&sdesa_kk="+sdesa_kk+"&skecamatan_kk="+skecamatan_kk+"&semail_kk="+semail_kk+"&shp_kk="+shp_kk;
    passing=passing+"&snama1="+snama1+"&sanggota1="+sanggota1+"&snuptk1="+snuptk1;
    passing=passing+"&snama2="+snama2+"&sanggota2="+sanggota2+"&snuptk2="+snuptk2;
    passing=passing+"&snama3="+snama3+"&sanggota3="+sanggota3+"&snuptk3="+snuptk3;
    passing=passing+"&snama4="+snama4+"&sanggota4="+sanggota4+"&snuptk4="+snuptk4;
    passing=passing+"&snama5="+snama5+"&sanggota5="+sanggota5+"&snuptk5="+snuptk5;
    passing=passing+"&snama6="+snama6+"&sanggota6="+sanggota6+"&snuptk6="+snuptk6;
    passing=passing+"&snama7="+snama7+"&sanggota7="+sanggota7+"&snuptk7="+snuptk7;
    passing=passing+"&snama8="+snama8+"&sanggota8="+sanggota8+"&snuptk8="+snuptk8;
    passing=passing+"&snama9="+snama9+"&sanggota9="+sanggota9+"&snuptk9="+snuptk9;
    passing=passing+"&snama10="+snama10+"&sanggota10="+sanggota10+"&snuptk10="+snuptk10;
    passing=passing+"&snama11="+snama11+"&sanggota11="+sanggota11+"&snuptk11="+snuptk11;
    passing=passing+"&snama12="+snama12+"&sanggota12="+sanggota12+"&snuptk12="+snuptk12;
    passing=passing+"&snama13="+snama13+"&sanggota13="+sanggota13+"&snuptk13="+snuptk13;
    passing=passing+"&snama14="+snama14+"&sanggota14="+sanggota14+"&snuptk14="+snuptk14;
    passing=passing+"&snama15="+snama15+"&sanggota15="+sanggota15+"&snuptk15="+snuptk15;
    passing=passing+"&snama16="+snama16+"&sanggota16="+sanggota16+"&snuptk16="+snuptk16;
    passing=passing+"&snama17="+snama17+"&sanggota17="+sanggota17+"&snuptk17="+snuptk17;
    passing=passing+"&snama18="+snama18+"&sanggota18="+sanggota18+"&snuptk18="+snuptk18;
    passing=passing+"&snama19="+snama19+"&sanggota19="+sanggota19+"&snuptk19="+snuptk19;
    passing=passing+"&snama20="+snama20+"&sanggota20="+sanggota20+"&snuptk20="+snuptk20;
    passing=passing+"&snama21="+snama21+"&sanggota21="+sanggota21+"&snuptk21="+snuptk21;
    passing=passing+"&snama22="+snama22+"&sanggota22="+sanggota22+"&snuptk22="+snuptk22;
    passing=passing+"&snama23="+snama23+"&sanggota23="+sanggota23+"&snuptk23="+snuptk23;
    passing=passing+"&snama24="+snama24+"&sanggota24="+sanggota24+"&snuptk24="+snuptk24;
    passing=passing+"&snama25="+snama25+"&sanggota25="+sanggota25+"&snuptk25="+snuptk25+"&jml_anggota="+jml_anggota+"&no_registrasi="+no_registrasi;
    xmlhttp5.open("GET",passing,true);
    xmlhttp5.send();
    //parent.location="savedb.php?status="+str+"&q=abc"+"&nama="+nama_kelompok;
    //setTimeout("alert(document.cookie)",5000);
    //alert(document.cookie);
    //setCookie("status","processing",1);
    //datanya=getCookie("status");

    /*while(datanya=="processing")
    {
        datanya=getCookie("status");
    }*/
    //alert("abced");
}
function showlistanggota(str)
{
    if(str==26)
    {
        ijumlah = <?php echo $jumlah_anggota?>;//parseInt(str);
        document.Inputdata.jumlah_anggota.value=<?php echo $jumlah_anggota?>;
    }
    else
         ijumlah = parseInt(str);
    
    {document.Inputdata.nama1.readOnly=true;document.Inputdata.nuptk1.readOnly=true;document.Inputdata.anggota1.disabled=true;}
    {document.Inputdata.nama2.readOnly=true;document.Inputdata.nuptk2.readOnly=true;document.Inputdata.anggota2.disabled=true;}
    {document.Inputdata.nama3.readOnly=true;document.Inputdata.nuptk3.readOnly=true;document.Inputdata.anggota3.disabled=true;}
    {document.Inputdata.nama4.readOnly=true;document.Inputdata.nuptk4.readOnly=true;document.Inputdata.anggota4.disabled=true;}
    {document.Inputdata.nama5.readOnly=true;document.Inputdata.nuptk5.readOnly=true;document.Inputdata.anggota5.disabled=true;}
    {document.Inputdata.nama6.readOnly=true;document.Inputdata.nuptk6.readOnly=true;document.Inputdata.anggota6.disabled=true;}
    {document.Inputdata.nama7.readOnly=true;document.Inputdata.nuptk7.readOnly=true;document.Inputdata.anggota7.disabled=true;}
    {document.Inputdata.nama8.readOnly=true;document.Inputdata.nuptk8.readOnly=true;document.Inputdata.anggota8.disabled=true;}
    {document.Inputdata.nama9.readOnly=true;document.Inputdata.nuptk9.readOnly=true;document.Inputdata.anggota9.disabled=true;}
    {document.Inputdata.nama10.readOnly=true;document.Inputdata.nuptk10.readOnly=true;document.Inputdata.anggota10.disabled=true;}
    {document.Inputdata.nama11.readOnly=true;document.Inputdata.nuptk11.readOnly=true;document.Inputdata.anggota11.disabled=true;}
    {document.Inputdata.nama12.readOnly=true;document.Inputdata.nuptk12.readOnly=true;document.Inputdata.anggota12.disabled=true;}
    {document.Inputdata.nama13.readOnly=true;document.Inputdata.nuptk13.readOnly=true;document.Inputdata.anggota13.disabled=true;}
    {document.Inputdata.nama14.readOnly=true;document.Inputdata.nuptk14.readOnly=true;document.Inputdata.anggota14.disabled=true;}
    {document.Inputdata.nama15.readOnly=true;document.Inputdata.nuptk15.readOnly=true;document.Inputdata.anggota15.disabled=true;}
    {document.Inputdata.nama16.readOnly=true;document.Inputdata.nuptk16.readOnly=true;document.Inputdata.anggota16.disabled=true;}
    {document.Inputdata.nama17.readOnly=true;document.Inputdata.nuptk17.readOnly=true;document.Inputdata.anggota17.disabled=true;}
    {document.Inputdata.nama18.readOnly=true;document.Inputdata.nuptk18.readOnly=true;document.Inputdata.anggota18.disabled=true;}
    {document.Inputdata.nama19.readOnly=true;document.Inputdata.nuptk19.readOnly=true;document.Inputdata.anggota19.disabled=true;}
    {document.Inputdata.nama20.readOnly=true;document.Inputdata.nuptk20.readOnly=true;document.Inputdata.anggota20.disabled=true;}
    {document.Inputdata.nama21.readOnly=true;document.Inputdata.nuptk21.readOnly=true;document.Inputdata.anggota21.disabled=true;}
    {document.Inputdata.nama22.readOnly=true;document.Inputdata.nuptk22.readOnly=true;document.Inputdata.anggota22.disabled=true;}
    {document.Inputdata.nama23.readOnly=true;document.Inputdata.nuptk23.readOnly=true;document.Inputdata.anggota23.disabled=true;}
    {document.Inputdata.nama24.readOnly=true;document.Inputdata.nuptk24.readOnly=true;document.Inputdata.anggota24.disabled=true;}
    {document.Inputdata.nama25.readOnly=true;document.Inputdata.nuptk25.readOnly=true;document.Inputdata.anggota25.disabled=true;}
  if(ijumlah>=1)    
	{document.Inputdata.nama1. readOnly=false;document.Inputdata.nuptk1. readOnly=false;}
    if(ijumlah>=2)          
	{document.Inputdata.nama2. readOnly=false;document.Inputdata.nuptk2. readOnly=false;document.Inputdata.anggota2. disabled=false;}
    if(ijumlah>=3)      
	{document.Inputdata.nama3. readOnly=false;document.Inputdata.nuptk3. readOnly=false;document.Inputdata.anggota3. disabled=false;}
    if(ijumlah>=4)            
	{document.Inputdata.nama4. readOnly=false;document.Inputdata.nuptk4. readOnly=false;document.Inputdata.anggota4. disabled=false;}
    if(ijumlah>=5)               
	{document.Inputdata.nama5. readOnly=false;document.Inputdata.nuptk5. readOnly=false;document.Inputdata.anggota5. disabled=false;}
    if(ijumlah>=6)                
	{document.Inputdata.nama6. readOnly=false;document.Inputdata.nuptk6. readOnly=false;document.Inputdata.anggota6. disabled=false;}
    if(ijumlah>=7)          
	{document.Inputdata.nama7. readOnly=false;document.Inputdata.nuptk7. readOnly=false;document.Inputdata.anggota7. disabled=false;}
    if(ijumlah>=8)   
	{document.Inputdata.nama8. readOnly=false;document.Inputdata.nuptk8. readOnly=false;document.Inputdata.anggota8. disabled=false;}
    if(ijumlah>=9)                  
	{document.Inputdata.nama9. readOnly=false;document.Inputdata.nuptk9. readOnly=false;document.Inputdata.anggota9. disabled=false;}
    if(ijumlah>=10)               
	{document.Inputdata.nama10.readOnly=false;document.Inputdata.nuptk10.readOnly=false;document.Inputdata.anggota10.disabled=false;}
    if(ijumlah>=11)                   
	{document.Inputdata.nama11.readOnly=false;document.Inputdata.nuptk11.readOnly=false;document.Inputdata.anggota11.disabled=false;}
    if(ijumlah>=12)               
	{document.Inputdata.nama12.readOnly=false;document.Inputdata.nuptk12.readOnly=false;document.Inputdata.anggota12.disabled=false;}
    if(ijumlah>=13)                   
	{document.Inputdata.nama13.readOnly=false;document.Inputdata.nuptk13.readOnly=false;document.Inputdata.anggota13.disabled=false;}
    if(ijumlah>=14)                
	{document.Inputdata.nama14.readOnly=false;document.Inputdata.nuptk14.readOnly=false;document.Inputdata.anggota14.disabled=false;}
    if(ijumlah>=15)                  
	{document.Inputdata.nama15.readOnly=false;document.Inputdata.nuptk15.readOnly=false;document.Inputdata.anggota15.disabled=false;}
    if(ijumlah>=16)                    
	{document.Inputdata.nama16.readOnly=false;document.Inputdata.nuptk16.readOnly=false;document.Inputdata.anggota16.disabled=false;}
    if(ijumlah>=17)                
	{document.Inputdata.nama17.readOnly=false;document.Inputdata.nuptk17.readOnly=false;document.Inputdata.anggota17.disabled=false;}
    if(ijumlah>=18)                    
	{document.Inputdata.nama18.readOnly=false;document.Inputdata.nuptk18.readOnly=false;document.Inputdata.anggota18.disabled=false;}
    if(ijumlah>=19)              
	{document.Inputdata.nama19.readOnly=false;document.Inputdata.nuptk19.readOnly=false;document.Inputdata.anggota19.disabled=false;}
    if(ijumlah>=20)                  
	{document.Inputdata.nama20.readOnly=false;document.Inputdata.nuptk20.readOnly=false;document.Inputdata.anggota20.disabled=false;}
    if(ijumlah>=21)                 
	{document.Inputdata.nama21.readOnly=false;document.Inputdata.nuptk21.readOnly=false;document.Inputdata.anggota21.disabled=false;}
    if(ijumlah>=22)                   
	{document.Inputdata.nama22.readOnly=false;document.Inputdata.nuptk22.readOnly=false;document.Inputdata.anggota22.disabled=false;}
    if(ijumlah>=23)                  
	{document.Inputdata.nama23.readOnly=false;document.Inputdata.nuptk23.readOnly=false;document.Inputdata.anggota23.disabled=false;}
    if(ijumlah>=24) 
	{document.Inputdata.nama24.readOnly=false;document.Inputdata.nuptk24.readOnly=false;document.Inputdata.anggota24.disabled=false;}
    if(ijumlah>=25) 
	{document.Inputdata.nama25.readOnly=false;document.Inputdata.nuptk25.readOnly=false;document.Inputdata.anggota25.disabled=false;}
    
    document.Inputdata.anggota1.value=<?php echo $jabatan1?>;
    document.Inputdata.anggota2.value=<?php echo $jabatan2?>;
    document.Inputdata.anggota3.value=<?php echo $jabatan3?>;
    document.Inputdata.anggota4.value=<?php echo $jabatan4?>;
    document.Inputdata.anggota5.value=<?php echo $jabatan5?>;
    document.Inputdata.anggota6.value=<?php echo $jabatan6?>;
    document.Inputdata.anggota7.value=<?php echo $jabatan7?>;
    document.Inputdata.anggota8.value=<?php echo $jabatan8?>;
    document.Inputdata.anggota9.value=<?php echo $jabatan9?>;
    document.Inputdata.anggota10.value=<?php echo $jabatan10?>;
    document.Inputdata.anggota11.value=<?php echo $jabatan11?>;
    document.Inputdata.anggota12.value=<?php echo $jabatan12?>;
    document.Inputdata.anggota13.value=<?php echo $jabatan13?>;
    document.Inputdata.anggota14.value=<?php echo $jabatan14?>;
    document.Inputdata.anggota15.value=<?php echo $jabatan15?>;
    document.Inputdata.anggota16.value=<?php echo $jabatan16?>;
    document.Inputdata.anggota17.value=<?php echo $jabatan17?>;
    document.Inputdata.anggota18.value=<?php echo $jabatan18?>;
    document.Inputdata.anggota19.value=<?php echo $jabatan19?>;
    document.Inputdata.anggota20.value=<?php echo $jabatan20?>;
    document.Inputdata.anggota21.value=<?php echo $jabatan21?>;
    document.Inputdata.anggota22.value=<?php echo $jabatan22?>;
    document.Inputdata.anggota23.value=<?php echo $jabatan23?>;
    document.Inputdata.anggota24.value=<?php echo $jabatan24?>;
    document.Inputdata.anggota25.value=<?php echo $jabatan25?>;
    var no_reg=document.Inputdata.no_registrasi.value;
    document.Inputdata.nama_kk.value=no_reg.substring(6,7);
    //alert("ok");
    //ChangeNoReg_updatelist("XX")

}
function update_retprop(str)
{
    var data,data1;
    data=document.Inputdata.no_registrasi.value;
    data = data.substring(2,15);
    document.Inputdata.no_registrasi.value = str + data;
}
function update_noreg(str)
{
    var data,data1;
    data=document.Inputdata.no_registrasi.value;
    data1=document.Inputdata.no_registrasi.value;
    data = data.substring(0,3);
    data1 = data1.substring(5,15);
    document.Inputdata.no_registrasi.value = data + str + data1;
}
function update_kk_reg(str)
{
    var data,data1;
    data=document.Inputdata.no_registrasi.value;
    data1=document.Inputdata.no_registrasi.value;
    data = data.substring(0,6);
    data1 = data1.substring(7,15);
    document.Inputdata.no_registrasi.value = data + str + data1;
}
function update_bidang(str)
{
    //XX-XX-X-XXX-001	
    var data,data1;
    data=document.Inputdata.no_registrasi.value;
    data1=document.Inputdata.no_registrasi.value;
    data = data.substring(0,8);
    data1 = data1.substring(11,15);
    document.Inputdata.no_registrasi.value = data + str + data1;
}
function update_no_urut()
{
    var data,data1;
    data=document.cookie;
    len=data.length;
    i=0;
    while(data1!="VaniaCantik" && i<len)
    {
	data1=data.substring(i,i+11);
	i=i+1;
        //alert(data1);
    }
    //alert(data1);
    str=data.substring(i+11,i+14);
    //alert(str);
    //alert(str);
    iurut=parseInt(str);
    iurut=iurut+1;
    if(i==len)
        iurut=1;
    if(iurut<10)
        str='00'+iurut;
    else if (iurut<100)
        str='0'+iurut;
    else
        str = iurut;
    data=document.Inputdata.no_registrasi.value;
    data1=document.Inputdata.no_registrasi.value;
    data = data.substring(0,12);
    document.Inputdata.no_registrasi.value = data + str;
}
function kosongi_noreg()
{
    //XX-XX-X-XXX-001	
    var data,data1;
    //alert("fdsafsa");
    data1=document.Inputdata.no_registrasi.value;
    //alert(data1);
    data = 'XX-XX-X-XXX-XXX';
    //data1 = data1.substring(12,15);
    document.Inputdata.no_registrasi.value = data;
    
}
</script>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
<title>PROFIL KKG/MGMP, KKKS/MKKS, KKPS/MKPS</title>
    
<link rel="stylesheet" type="text/css" href="css/style-min.css" />
<link rel="stylesheet" type="text/css" href="css/table-min.css" />
<link rel="stylesheet" type="text/css" href="css/menu-min.css" />

<script type="text/javascript" src="script/libs_c.js"></script>
<!--<script type="text/javascript" src="script/default.js"></script>-->

<script type="text/javascript" language="javascript" src="script/script.js"></script>


<!--[if IE]>
<style type="text/css">
/* 50 = ti_m padding + margin */
#t_o { width: expression((document.getElementById('ti_m').offsetWidth + 50) > document.documentElement.offsetWidth ? document.documentElement.scrollWidth : ''); }
#ti_m1 { border-left: 0; }
#t_m .linfo, #t_m .rinfo { line-height: 1.6em; }
.toolbar fieldset { padding-bottom: 2px; }
input.button { padding: 0 8px; }
h3 { background-position: 0 1px; }
/* To prevent extra spacing under the tab */
div.tab { float: none; }
</style>
<![endif]-->

<!--[if lte IE 6]>
<script type="text/javascript" language="javascript" src="script/cssmenu.js"></script>
<style type="text/css">
img {
	behavior: url("imanges/pngbehavior.htc"); /* Must be absolute path */
}
</style>
<![endif]-->



<!-- module IE css -->

<style>
im { cursor:pointer;}
</style>

<link rel="shortcut icon" href="images/diknas-ico.png" />

</head>

<body>
	<div id="t_o">
			
		
		<im><div id="t_h" OnClick="window.location=('http://psdmp.kemdiknas.go.id')">
			<div class="w0">
				<div class="w1">
					<div id="logo"><img alt="makara" src="images/diknas.png" style="width:42px;height:42px"/></div>
					<h1><em>KEMENTERIAN PENDIDIKAN DAN KEBUDAYAAN</em></h1>
					<!--<h2><br>PROFIL KKG/MGMP, KKKS/MKKS, KKPS/MKPS</br></h2>
					<h2> <em>Kementerian Pendidikan dan Kebudayaan</em> </h2>-->

					<!--<div class="lang icons">
						Language: &nbsp;
																					<span class="currentlang" title="Current language"><img src="images/id.png" /></span>
																					<a href="../System/Language?lang=en"><img src="images/en.png" /></a>
														 |
						zoom <select onchange="zoom(this)"><option value="100">100%</option><option value="110">110%</option><option value="120">120%</option><option value="140">140%</option><option value="150">150%</option></select>

					</div>-->
				</div>
			</div>
		</div></im>

		<div id="t_m">
			<div class="w0">
				<div class="w1">
					<ul id="nv">
					    <li class="static"><a href="#">&gt;&gt;</a></li>
					    <li><a href="lihat_data.php">Home</a></li>
					    <li class="class hc"><a href="#">Atur Data</a>
					        <ul>
					            <li class="last"><a href="lihat_data.php">Isi / edit Data Kelompok Kerja</a></li>
					            <li class="last"><a href="view.php?reg=<?php echo $reg_no ?>">Lihat Data Kelompok Kerja</a></li>
					            <?php echo $additional_menu?>
					        </ul>
					    </li>
					    <li class="class hc"><a href="#">Laporan</a>
					        <ul>
					            <li><a href="ptampil_data.php">Rekapitulasi Data Kelompok Kerja</a></li>
					            <li class="last"><a href="showlistdata.php">Daftar Kelompok Kerja</a></li>
					        </ul>
					    </li>
					    <li class="class hc"></li>
					</ul>

					<div style="border-top:2px solid gold;border-bottom:1px solid #C90"><!-- --></div>
					<div id="m_b">
						<div id="m_b1">
							<div class="linfo" style="border-left:0">
								 <br/>
								<strong>
																<a href="/main/Authentication/Status" title="Detail"><img style="vertical-align:bottom" src="images/role2.png" class="png16" alt="person"/></a> User Login 
																&ndash;<?php echo ' '.$nama_kkx?>
																</strong>

							</div>
							<div class="linfo" style="border-right:0">
								 <a href="logout.php"><img src="<?php echo $img_log?>" /></a>
							</div>
							<div class="rinfo" style="font:1.4em calibri;letter-spacing:-1px">
								<!--Logout Counter <span id="ss_min">30</span>:<span id="ss_sec">00</span>--> </a><strong>Jumlah Kelompok Kerja Terdaftar : <?php echo $jumlah_total_kk ?></strong>
							</div>

							
							<div class="clear"><!-- --></div>

							<div style="border-bottom:1px solid #DDD"><!-- --></div>
							<h2 id="ti_h">Profil KKG/MGMP, KKKS/MKKS, KKPS/MKPS</h2>
							<div id="ti_m">
								<div id="ti_m1">
							<div class="clear"></div>

<form action="kirimpos.php" method="post" name="Inputdata">
        <script type="text/javascript" > checkprivilege(); </script>
	<!--<script type="text/javascript" > showlistpropinsi("XX"); </script>
        <script type="text/javascript" > showlistkota("XX"); </script>
        <script type="text/javascript" > showlistbidang("XX"); </script>-->

	<input type="hidden" name="KD_MHS" value="" />
	<table class="box" width="100%">
		<tr>
			<th colspan="4">IDENTITAS KKG/MGMP, KKKS/MKKS, KKPS/MKPS</th>
		</tr>
		<tr>

			<td class="head" width="20%">Nomor Registrasi</td>
			<td width="30%"> <?php echo $no_reg2?><!--<input type="text" name="no_registrasi" maxlength="50" size="40" value="<?php echo $no_reg?>" readonly/>
			    <input type="text" name="nm_ijazah" maxlength="2" size="2" value=""/>
			    -<input type="text" name="nm_ijazah" maxlength="2" size="2" value=""/>
			    -<input type="text" name="nm_ijazah" maxlength="4" size="4" value=""/>-->
			</td>
			<td class="head" width="20%"></td>
			<td width="30%"></td>
		</tr>
		<tr>
		    <td class="head" width="20%">Propinsi</td>
		    <td width="30%"><?php echo $nama_prop ?></td><!--<p id="listpropinsi"></td>
		    <td width="30%">
		        <select name="kota" onchange="ChangeNoReg_updatelist(this.value)";)>
			    <option value="XX">Propinsi</option>
			    <option value="01">NAD</option>
			    <option value="02">Sumut</option>
			    <option value="03">Riau</option>
			    <option value="04">Sumbar</option>
			    <option value="05">Jambi</option>
			</select>
		     </td>-->
		    <td class="head" width="20%"></td>
		    <td class="head" width="20%"></td>
		</tr>
		<tr>
		    <td class="head" width="20%">Kabupaten / Kota</td>
		    <td width="30%"><?php echo $nama_kab ?></td><!--<p id="listkota2"></td>
		    <td width="30%">
		        <select name="kd_pend_terakhir" onchange="showlistkota(this.value);">
			    <option value="">Kabupaten / Kota</option>
			    <option value="1">Bogor</option>
			    <option value="2">Kota Depok</option>
			    <option value="3">Cianjur</option>
			    <option value="4">Bandung</option>
			    <option value="5">Kota Bandung</option>
			</select>
		     </td>-->
		    <td class="head" width="20%"></td>
		    <td class="head" width="20%"></td>
		</tr>
		<tr>
		    <td class="head" width="20%">Jenis Kelompok Kerja</td>
		    <td width="30%"><?php echo $jenis_kk?>
		        <!--<select name="nama_kk" onchange="update_kk_reg(this.value)" disabled>
			    <option value="">Jenis Kelompok Kerja</option>
			    <option value="1">KKG</option>
			    <option value="2">MGMP</option>
			    <option value="3">KKKS</option>
			    <option value="4">MKKS</option>
			    <option value="5">KKPS</option>
			    <option value="6">MKPS</option>
			</select>-->
		     </td>
		    <td class="head" width="20%"></td>
		    <td class="head" width="20%"></td>
		</tr>
		<tr>
		    <td class="head" width="20%">Rumpun / Bidang Studi</td>
		    <td width="100px"><?php echo $nama_bidang?></td><!--<p id="listbidang"></td>
		        <select name="kd_pend_terakhir">
			    <option value="">Rumpun / Bidan Studi</option>
			    <option value="1">Rumpun 1</option>
			    <option value="2">Rumpun 2</option>
			    <option value="3">Bidang Studi 1</option>
			    <option value="4">Bidang Studi 2</option>
			    <option value="5">Bidang Studi 3</option>
			</select>
		     </td>-->
		    <td class="head" width="20%"></td>
		    <td class="head" width="20%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Nama Kelompok Kerja</td>
			<td width="30%"><?php echo $nama_kk ?></td><!--<input type="text" name="nama_kelompok" maxlength="50" size="40" value="<?php echo $nama_kk ?>"/></td>-->
			<td class="head" width="20%"></td>
			<td width="30%"></td>
		</tr>
		<!--<tr>
			<td class="head" width="20%">Masukkan password </td>
			<td width="30%"><input type="password" name="password_kk" maxlength="50" size="40" value="" /></td>
			<td class="head" width="20%"></td>
			<td width="30%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Masukkan password sekali lagi</td>
			<td width="30%"><input type="password" name="password_kk2" maxlength="50" size="40" value="" /></td>
			<td class="head" width="20%"></td>
			<td width="30%"></td>
		</tr>-->
		<tr>
		</tr>
		<tr>
			<td class="head" width="20%">Alamat Sekretariat <span style="color:red"></span></td>

			<td width="30%"><?php echo $alamat ?></td><!--<input type="text" name="alamat_kk" maxlength="60" size="60" value="<?php echo $alamat ?>"/></td>-->
			<td class="head" width="20%"></td>
			<td width="30%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Tipe Daerah<span style="color:red"></span></td>

			<td width="30%"> <?php echo $tipe_daerah ?></td><!--<input type="text" name="desa_kk" maxlength="50" size="40" value="<?php echo $desa ?>"/></td>-->
			<td class="head" width="20%"></td>
			<td class="head" width="20%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Desa <span style="color:red"></span></td>

			<td width="30%"><?php echo $desa ?></td><!--<input type="text" name="desa_kk" maxlength="50" size="40" value="<?php echo $desa ?>"/></td>-->
			<td class="head" width="20%"></td>
			<td class="head" width="20%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Kecamatan</td>
			<td width="30%"><?php echo $kecamatan ?></td><!--<input type="text" name="kecamatan_kk" maxlength="50" size="40" value="<?php echo $kecamatan ?>"/></td>-->
			<td class="head" width="20%"></td>
			<td class="head" width="20%"></td>
		</tr>
		<tr>
		</tr>
		<tr>
			<td class="head" width="20%">Alamat Email Kelompok Kerja <span style="color:red"></span></td>

			<td width="30%"><a href="https://mail.google.com/mail/?view=cm&tf=0&to=<?php echo $email ?>&fs=1&shva=1" target="_blank"><?php echo $email ?></a></td><!--<input type="text" name="email_kk" maxlength="40" size="40" value="<?php echo $email ?>"/></td>-->
			<td class="head" width="20%"></td>
			<td class="head" width="20%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Nomor Handphone Kontak</td>
			<td width="30%"><?php echo $hp ?></td><!--<input type="text" name="hp_kk" maxlength="40" size="40" value="<?php echo $hp ?>"/></td>-->
			<td class="head" width="20%"></td>
			<td class="head" width="20%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Nama Bank</td>
			<td width="30%"><?php echo $nama_bank ?></td><!--<input type="text" name="hp_kk" maxlength="40" size="40" value="<?php echo $hp ?>"/></td>-->
			<td class="head" width="20%"></td>
			<td class="head" width="20%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Nomor Rekening Bank</td>
			<td width="30%"><?php echo $rek_bank ?></td><!--<input type="text" name="hp_kk" maxlength="40" size="40" value="<?php echo $hp ?>"/></td>-->
			<td class="head" width="20%"></td>
			<td class="head" width="20%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">Rekening Atas Nama</td>
			<td width="30%"><?php echo $pemilik_rek ?></td><!--<input type="text" name="hp_kk" maxlength="40" size="40" value="<?php echo $hp ?>"/></td>-->
			<td class="head" width="20%"></td>
			<td class="head" width="20%"></td>
		</tr>
		<tr>
			<td class="head" width="20%">SK Kepala Dinas </td>
			<td width="30%"><?php echo $sk_no ?><span style="color:white">_</span>Tertanggal<span style="color:white">_</span><?php echo $tanggal_sk ?></td><!--<input type="text" name="hp_kk" maxlength="40" size="40" value="<?php echo $hp ?>"/></td>-->
			<td class="head" width="20%"></td>
			<td class="head" width="20%"></td>
		</tr>
		<!--<tr>
			<td class="head" width="20%">Tanggal Pengukuhan</td>
			<td width="30%"><?php echo $tanggal_sk ?></td><!--<input type="text" name="hp_kk" maxlength="40" size="40" value="<?php echo $hp ?>"/></td>
			<td class="head" width="20%"></td>
			<td class="head" width="20%"></td>
		</tr>-->
		<tr>
			<th colspan="4">DATA ANGGOTA KELOMPOK KERJA</th>
		</tr>
    		</table>
		<table class="box" width="100%">
         	<p id="tampilanggota"></p>
		</table>
         	<p id="tampilprogram"></p>
		
		
	</table>
</form>
																	</div>
							</div>
						</div>
					</div>

					<div style="clear:both;border-bottom:1px solid #DDD"><!-- --></div>
					<div class="foot">
						<div style="float:left">&copy; Copyright 20011 <a href="http://psdmp.kemdiknas.go.id" target="_blank">Kementerian Pendidikan dan Kebudayaan</a></div>

						<div style="float:right">Sekretariat PSDMP dan PMP</div>
						<div class="clear"></div>
					</div>

				</div>
			</div>
		</div>
		<div id="t_f"><div><div>&nbsp;</div></div></div>
	</div>
	
	<script type="text/javascript" > showtabelanggota("<?php echo $no_reg2?>"); </script>
	<script type="text/javascript" > showtableprogram("<?php echo $no_reg2?>"); </script>
        <!--<script type="text/javascript" > update_no_urut(); </script>-->
        <!--<script type="text/javascript" > showlistanggota(26); </script>-->
        <!--<script type="text/javascript" > kosongi_noreg(); </script>-->
        <!--<script type="text/javascript" > saveDB("init"); </script>-->

</body>
</html>